import type { AppRouteModule } from '@/router/types';

import { LAYOUT } from '@/router/constant';

const comment: AppRouteModule = {
  path: 'comment',
  name: 'Comment',
  component: LAYOUT,
  redirect: '/comment/wall',
  meta: {
    title: '评论留言',
    orderNo: 5,
    icon: 'ion:layers-outline',
  },
  children: [
    {
      path: 'sys',
      name: 'CommentSys',
      component: () => import('@/views/comment/sys/index.vue'),
      meta: {
        title: '评论管理',
      },
    },
    {
      path: 'wall',
      name: 'CommentWall',
      component: () => import('@/views/comment/wall/index.vue'),
      meta: {
        title: '留言墙',
      },
    },
  ],
};

export default comment;
